// 无特殊必要，请勿手动修改此文件内容，可能会导致construct脚本出错

#include "BootLoader.h"
#include "../NodeHandler/NodeHandler.h"
#include "../../task/PassiveCtrl/PassiveCtrl.h"
#include "../../task/Ls/Ls.h"
#include "../../task/Get/Get.h"
#include "../../task/XiaoxiMessage/XiaoxiMessage.h"
#include "../../task/CloseTask/CloseTask.h"
#include "../../task/Ping/Ping.h"
#include "../../task/GetFileList/GetFileList.h"


// 需要注册的节点交互任务在这里注册
void BootLoader::registerTask() {
    nodeHandler.registerTask(TaskFlag::getfilelist, new task::GetFileList());
    nodeHandler.registerTask(TaskFlag::ping, new task::Ping());
    nodeHandler.registerTask(TaskFlag::passivectrl, new task::PassiveCtrl());
    nodeHandler.registerTask(TaskFlag::ls, new task::Ls());
    nodeHandler.registerTask(TaskFlag::get, new task::Get());
    nodeHandler.registerTask(TaskFlag::xiaoximessage, new task::XiaoxiMessage());
    nodeHandler.registerTask(TaskFlag::closetask, new task::CloseTask());
}